

/**
 * 
 * 
 * API:
 * ---------------
 * getBPMObjectType()
 * fromXML(xmlNode)
 */
(function(global){

    'use strict';

    const logger = WorkflowUtil.newLogger("WorkflowApp/BPMHumenActivity");

    let BPMHumenActivity = function () {

        BPMHumenActivity.__super__.constructor.apply(this, arguments);

        this.addAttr("isValid", "", "b");
        this.addAttr("finishNum", "", "e");
        this.addAttr("finishNum2", "", "l");
        this.addAttr("task_num", "", "c");
        this.addAttr("task_num_value", "", "a");

    };


    //继承
    WorkflowUtil.extend(BPMHumenActivity, global.BPMActivity);
    
    BPMHumenActivity.prototype.getBPMObjectType = function(){
        return WorkflowConstant.bpmObjType.BPMHumenActivity;
    };
    
    
    /**
     * 从xml节点中解析节点信息
     * @param xmlNode
     */
    BPMHumenActivity.prototype.fromXML = function(xmlNode){
        
        //解析节点属性
        this.transXMLNode2BPMObject(xmlNode);
        
        //统一解析子节点
        BPMHumenActivity.__super__.fromXML.apply(this, [xmlNode]);
    };
    
    
    global.BPMHumenActivity = BPMHumenActivity;
    
})(WorkflowApp);